﻿using System;
using System.Collections.Generic;
using Pixysoft.Framework.Noebe.Consistency;
namespace Pixysoft.Framework.Noebe.Orm
{
    public interface IOrmConsistency
    {
        void Deploy<T>();

        List<ConsistencySetting> DeployToFile<T>();

        void Deploy<T>(bool forcemode);

        List<ConsistencySetting> DeployToFile<T>(bool forcemode);

        bool Download<T>();

        bool DownloadMe<T>();

        /// <summary>
        /// 上传同步数据 如果存在新的下载数据 则返回
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        bool Upload<T>();

        /// <summary>
        /// 上传本组的同步数据 如果存在新的下载数据 则返回
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        bool UploadMe<T>();
    }
}
